package br.com.dev.tcc.view.sinistro.chain;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

public abstract class SinistroChainItem {

	protected LayoutInflater inflater;
	protected View view;
	protected Context context;
	
	public SinistroChainItem(Context context) {
		this.context = context;
		inflater = LayoutInflater.from(context);
	}
	
	protected void inflateView(int layoutResId){
		view = inflater.inflate(layoutResId, null);
		init();
	}
	
	public View getView(){
		return view;
	}

	public abstract View getFirstView();
	
	public abstract boolean isValid();
	
	public abstract void setSinistroFields();
	
	public abstract void init();
	
	public abstract void onShow();
}
